import fetch from "./request.js";

// 查询
export function pageThematicGame(data) {
  return fetch("/nb-pc/1.0.1/ThematicGameService/pageThematicGame", {
    method: "post",
    data: data,
  });
}
//新增
export function addThematicGame(data) {
    return fetch("/nb-pc/1.0.1/ThematicGameService/addThematicGame", {
      method: "post",
      data: data,
      withLoading: true
    });
  }
  //编辑
export function updateThematicGame(data) {
    return fetch("/nb-pc/1.0.1/ThematicGameService/updateThematicGame", {
      method: "post",
      data: data,
    });
  }
  //删除
export function deleteThematicGame(data) {
    return fetch("/nb-pc/1.0.1/ThematicGameService/deleteThematicGame", {
      method: "post",
      data: data,
    });
  }
    //获取结构化的专题活动，包含专题楼层和专题农产品
export function formThematicGame(data) {
    return fetch("/nb-pc/1.0.1/ThematicGameService/formThematicGame", {
      method: "post",
      data: data,
      headers:{
        "Content-Type":"application/json; charset=utf-8"
      },
    });
  }
      //发布专题活动
export function publishThematicGame(data) {
    return fetch("/nb-pc/1.0.1/ThematicGameService/publishThematicGame", {
      method: "post",
      data: data,
    });
  }
      //保存专题活动
export function saveThematicGame(data) {
    return fetch("/nb-pc/1.0.1/ThematicGameService/saveThematicGame", {
      method: "post",
      data: data,
    });
  }